home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / Sample Code / AOCE Sample Code / PowerTalk Access Modules / Sample CSAM / SKEL•CSAM.Make < prev    next >
Encoding:
Text File  |  1995-07-28  |  2.2 KB  |  80 lines  |  [TEXT/MPS ]

  1. FileName = SKEL•CSAM
  2.  
  3. Sources = :Sources:
  4. Objects = :Objects:
  5. PreComp = :PreComp:
  6.  
  7. #    COptionsExtra = -d UNIVERSAL_HEADERS -i "{PPCCIncludes}"
  8. COptionsExtra = -i "{AOCE_Interfaces}CIncludes"
  9.  
  10.  
  11. {Objects} ƒ{Sources}
  12.  
  13. SymOptions = -sym Off
  14.  
  15. AOptions = -d &FILENAME="'{FileName}'"
  16.  
  17. COptions = -b2 -r -mf {SymOptions} ∂
  18.             -d FILENAME='"{FileName}"' ∂
  19.             -d AUDIT ∂
  20.             {COptionsExtra} ∂
  21.             -k {PreComp}
  22.  
  23. ## Keep drvr.a.o first so the entry comes at offset zero in the resource
  24.  
  25. ObjectModules = {Objects}SKEL•DRVR.A.O ∂
  26.                      {Objects}SKEL•CSAM.C.O ∂
  27.                      {Objects}SKEL•Prox.C.O ∂
  28.                      {Objects}SKEL•Parz.C.O ∂
  29.                      {Objects}AOCE•Util.C.O ∂
  30.                      {Objects}SKEL•Util.A.O ∂
  31.                      {Objects}Audit.C.O {Objects}AuditLibrary.C.O
  32.  
  33. detcCodeFiles = {Objects}SKEL•DETC.C.O {Objects}AOCE•Util.C.O ∂
  34.                      {Objects}Audit.C.O {Objects}AuditLibrary.C.O
  35.  
  36. ResourceFiles = {Sources}SKEL•CSAM.R ∂
  37.                      {Sources}SKEL•CSAM_SetUp.R ∂
  38.                      {Sources}SKEL•CSAM_Other.R ∂
  39.                      {Sources}SKEL•CSAM.BNDL {Sources}SKEL•CSAM.ICON ∂
  40.                      {Objects}SKEL•CSAM.DETC {Objects}SKEL•CSAM.DRVR
  41.  
  42. LibraryFiles = 
  43.  
  44. ####
  45.  
  46. {PreComp}Headers.dump ƒ {Sources}Headers.h ∂
  47.                                 {Sources}SKEL•CSAM.H {Sources}AOCE•UTIL.H ∂
  48.                                 {Sources}Audit.h {Sources}AuditMacros.h
  49.     C {Sources}Headers.h {COptions} -d MAKEDUMP
  50.  
  51. ####
  52.  
  53. {Objects}SKEL•CSAM.DETC ƒƒ {PreComp}Headers.dump {detcCodeFiles}
  54.     Link -mf -t rsrc -c RSED -rt detc=0 -rn ∂
  55.         {SymOptions} -m LDAP_DETC -sg 'setup detc' ∂
  56.         {detcCodeFiles} ∂
  57.         "{CLibraries}"StdClib.o ∂
  58.         "{Libraries}"Interface.o ∂
  59.         -o {Objects}SKEL•CSAM.DETC
  60.  
  61. {Objects}SKEL•CSAM.DRVR ƒ {PreComp}Headers.dump {ObjectModules} {LibraryFiles}
  62.     Link -mf -w -t rsrc -c RSED -rt DRVR=11 -ra =resLocked,resSysHeap ∂
  63.         {SymOptions} -m CSAM_Entry -sg '.{FileName}' ∂
  64.         {ObjectModules} ∂
  65.         {LibraryFiles} ∂
  66.         "{CLibraries}"StdClib.o ∂
  67.         "{Libraries}"Interface.o ∂
  68.         "{Libraries}"Runtime.o ∂
  69.         -o "{Objects}"SKEL•CSAM.DRVR
  70.  
  71. {FileName} ƒ {ResourceFiles} "{AOCE_Interfaces}RIncludes:OCE.r"
  72.     Rez -c 'ldaP' -t dash ∂
  73.         -d REZ ∂
  74.         -d FILENAME='"{FileName}"' ∂
  75.         -i "{AOCE_Interfaces}RIncludes" ∂
  76.         -i "{AOCE_Interfaces}CIncludes" ∂
  77.         -s {Objects} {Sources}SKEL•CSAM.R -o {FileName}
  78.     Setfile -a SB {FileName}
  79.     Duplicate -y {FileName} "{SystemFolder}Extensions:"
  80.